#pragma once
#include <winsock2.h>
#pragma comment(lib, "ws2_32")

class Client {
public:
    explicit Client(const char* addr = "127.0.0.1", int port = 9999);
    void monitor();
    int sendMsg(const char* msg);
    ~Client();
private:
    WSAData wsaData{};
    SOCKET  cliSock;
    SOCKADDR_IN cliAddr{};
};
